export default [
  {
    title: '账户',
    width: 150,
    dataIndex: 'userName',
    scopedSlots: {
      customRender: 'userName'
    },
    filtered: true
  },
  {
    title: '优化师',
    width: 100,
    dataIndex: 'username',
  },
  {
    title: '商品名',
    width: 160,
    dataIndex: 'product_name',
  },
  {
    title: '利润',
    width: 160,
    dataIndex: 'profit',
    scopedSlots: {
      customRender: 'profit'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.profit - b.profit,
  },
  {
    title: '总消费',
    width: 160,
    dataIndex: 'cost',
    defaultSortOrder: 'descend',
    scopedSlots: {
      customRender: 'cost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.cost - b.cost,
  },
  {
    title: '赔付',
    width: 160,
    dataIndex: 'pf',
    scopedSlots: {
      customRender: 'pf'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.pf - b.pf,
  },
  {
    title: '周期总消费',
    width: 160,
    dataIndex: 'pf_cost',
    scopedSlots: {
      customRender: 'pf_cost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.pf_cost - b.pf_cost,
  },
  {
    title: '赔付周期利润',
    width: 160,
    dataIndex: 'pf_lirun',
    scopedSlots: {
      customRender: 'pf_lirun'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.pf_lirun - b.pf_lirun,
  },
  {
    title: '客单价',
    width: 100,
    dataIndex: 'kdj',
    scopedSlots: {
      customRender: 'kdj'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.kdj - b.kdj,
  },
  {
    title: 'gmv',
    width: 160,
    dataIndex: 'gmv',
    scopedSlots: {
      customRender: 'gmv'
    },
    sorter: (a, b) => a.gmv - b.gmv,
  },
  {
    title: '成单成本',
    width: 120,
    dataIndex: 'cdcb',
    defaultSortOrder: 'descend',
    scopedSlots: {
      customRender: 'cdcb'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.cdcb - b.cdcb,
  },
  {
    title: '成单量',
    width: 130,
    dataIndex: 'dsOcpcConversionsDetail',
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail - b.dsOcpcConversionsDetail,
  },
  {
    title: '转化率',
    width: 130,
    dataIndex: 'cvr',
    scopedSlots: {
      customRender: 'cvr'
    },
  },
  {
    title: '退单金额',
    width: 120,
    dataIndex: 'closedAmount',
    scopedSlots: {
      customRender: 'closedAmount'
    },
    sorter: (a, b) => a.closedAmount - b.closedAmount,
  },
  {
    title: 'ROI',
    width: 120,
    dataIndex: 'roi',
    scopedSlots: {
      customRender: 'roi'
    },
  },
  {
    title: '直播间观看',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail82',
  },
  {
    title: '直播间观看人数',
    width: 150,
    dataIndex: 'dsOcpcConversionsDetail82Uv',
  },
  {
    title: '直播间商品按钮点击',
    width: 160,
    dataIndex: 'dsOcpcConversionsDetail83',
  },
  {
    title: '直播间停留',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail84',
  },
  {
    title: '直播间购物袋点击',
    width: 150,
    dataIndex: 'dsOcpcConversionsDetail87',
  },
  {
    title: '直播间观看转化率',
    width: 150,
    dataIndex: 'dsOcpcConversionsDetail82CVR',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail82CVR'
    },
  },
  {
    title: '直播间商品按钮点击转化率',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail83CVR',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail83CVR'
    },
  },
  {
    title: '直播间停留转化率',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail84CVR',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail84CVR'
    },
  },
  {
    title: '直播间购物袋点击转化率',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail87CVR',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail87CVR'
    },
  },
  {
    title: '直播间观看人数成本',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail82UvCost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail82UvCost'
    },
  },
  {
    title: '直播间观看人数转化率',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail82UvCVR',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail82UvCVR'
    },
  },
  {
    title: '展现',
    width: 100,
    dataIndex: 'impression',
    sortDirections: ['descend', 'ascend'],
    sorter: () => {},
  },
  {
    title: '点击',
    width: 100,
    dataIndex: 'click',
    sortDirections: ['descend', 'ascend'],
    sorter: () => {},
  },
  {
    title: '点击率',
    width: 100,
    dataIndex: 'ctr',
    scopedSlots: {
      customRender: 'ctr'
    },
    sorter: () => {},
  },
  {
    title: '商品成单量',
    width: 130,
    dataIndex: 'dsOcpcConversionsDetail90',
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail90 - b.dsOcpcConversionsDetail90,
  },
  {
    title: '商品成单成本',
    width: 130,
    dataIndex: 'dsOcpcConversionsDetail90Cost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail90Cost'
    },
  },
  {
    title: '商品GMV',
    width: 110,
    dataIndex: 'productGmv',
    scopedSlots: {
      customRender: 'productGmv'
    },
  },
  {
    title: '商品转化率',
    width: 130,
    dataIndex: 'cvr90',
    scopedSlots: {
      customRender: 'cvr90'
    },
  },
  {
    title: '直播成单量',
    width: 130,
    dataIndex: 'dsOcpcConversionsDetail80',
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.dsOcpcConversionsDetail80 - b.dsOcpcConversionsDetail80,
  },
  {
    title: '直播成单成本',
    width: 130,
    dataIndex: 'dsOcpcConversionsDetail80Cost',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail80Cost'
    },
  },
  {
    title: '直播GMV',
    width: 120,
    dataIndex: 'dsOcpcConversionsDetail80Amount',
    scopedSlots: {
      customRender: 'dsOcpcConversionsDetail80Amount'
    },
  },
  {
    title: '直播转化率',
    width: 130,
    dataIndex: 'cvr80',
    scopedSlots: {
      customRender: 'cvr80'
    },
  },
  {
    title: '成本',
    width: 100,
    dataIndex: 'productCost',
    scopedSlots: {
      customRender: 'productCost'
    },
    sortDirections: ['descend', 'ascend'],
    sorter: (a, b) => a.productCost - b.productCost,
  },
]